#pragma once

#include <QWidget>
#include "networkmanager.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MedicineTakeWindow; }
QT_END_NAMESPACE

class MedicineTakeWindow : public QWidget
{
    Q_OBJECT

public:
    MedicineTakeWindow(QWidget *parent = nullptr);
    ~MedicineTakeWindow();

private slots:
    void on_takeButton_clicked();
    void on_cancelButton_clicked();
    void handleTakeMedicineResponse(const QJsonObject &response);

private:
    Ui::MedicineTakeWindow *medicinetakewindowUi;
    NetworkManager *networkManager;
};
